package com.daidai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.daidai.model.News;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author: Mr.Chen
 * Date: 2022/08/01 9:59
 * Description:
 */
public interface NewsService {
    News findNewsById(@Param("id") int id);

    List<News> findAllNews();

    List<News> findLastNews();

    void addNews(@Param("title") String title, @Param("descraption") String description, @Param("createTime") String createTime);

    void deleteNews(@Param("id") int id);

    void updateNews(@Param("title") String title, @Param("description") String description, @Param("id") int id);
}
